import 'package:json_annotation/json_annotation.dart';

part 'p_option_value.g.dart';

@JsonSerializable()
class POptionValue extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'presentation')
  String presentation;

  @JsonKey(name: 'name')
  String name;

  bool isSelect = false;

  POptionValue(
    this.id,
    this.presentation,
    this.name,
  );

  factory POptionValue.fromJson(Map<String, dynamic> srcJson) =>
      _$POptionValueFromJson(srcJson);
}
